<?

/**
* local collection functions of tocmenu_11
*
* @author Adesanto Asman
* @version 1.0
* @license Free
* @copyright Copyright (c)2007, Adesanto Asman
* @package CLHandlers
*
*/

/**
* @package CLHandlers
*
*/
class CLHandlers{

  /**
   * delete an entry
   *
   * @param object  $Db
   * @param integer $modelId
   * @param string  $srcDb
   */
  function dbEntDelete($Db,
                       $modelId,
                       $srcDb){

    $query	= "DELETE
               FROM ".$srcDb."
               WHERE MODEL_ID='".$modelId."' ";

    $Db->execQuery($query);
  }

  /**
   * insert into detail
   *
   * @param Object  $Db
   * @param string  $values
   * @param string  $srcDb
   */
  function insToHdr(&$Db,
                    &$values,
                     $srcDb){

    $query	= "INSERT INTO ".$srcDb."
               (MODEL_ID,
                MODEL,
                UNIT,
                TYPE,
                SER_NUMBER,
                STATUS)
               VALUES (".$values.")";

    $Db->execQuery($query);
  }
}

?>